const getters = {
  sidebar: state => state.app.sidebar, // 取 app模块属性
  device: state => state.app.device,
  token: state => state.user.token, //  取 user模块属性
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  userId: state => state.user.userId,
  routes: state => state.user.routes
}
export default getters
